package com.huilian.iotbox.admin.service.impl;

import com.huilian.iotbox.admin.dao.CommodityGroupDao;
import com.huilian.iotbox.admin.service.CommodityGroupService;
import com.huilian.iotbox.data.po.CommodityGroup;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CommodityGroupServiceImpl implements CommodityGroupService {


    @Autowired
    private CommodityGroupDao commodityGroupDao;

    @Override
    public CommodityGroup findOneCommodityGroupByCondition(CommodityGroup commodityGroupCondition) {
        return commodityGroupDao.findOneCommodityGroupByCondition(commodityGroupCondition);
    }

    @Override
    public int insert(CommodityGroup commodityGroup) {
        return commodityGroupDao.insert(commodityGroup);
    }
}
